/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ALSA_SND_COMMON_H
#define ALSA_SND_COMMON_H

#define     SND_CARD_ON                       "on"
#define     SND_CARD_OFF                      "off"

/* Capture Digital Volume  */
#define     SND_NUMID_CAPTURE_VOL       25
#define     SND_ELEM_CAPTURE_VOL        "Capture Digital Volume"

/* Capture Mute  */
#define     SND_NUMID_CAPUTRE_MUTE      26
#define     SND_ELEM_CAPUTRE_MUTE       "Capture Mute"

/* Master Playback Volume  */
#define     SND_NUMID_MASTER_PLAYBACK_VOL      31
#define     SND_ELEM_MASTER_PLAYBACK_VOL       "PCM Volume"
#define     SND_OUT_PLAYBACK_DEFAULT_VOLUME   "180"  /* min:0 max:192  */

/* Headphone Switch  */
#define     SND_NUMID_HEADPHONE_SWITCH      38
#define     SND_ELEM_HEADPHONE_SWITCH       "Headphone Switch"

/* Speaker Switch  */
#define     SND_NUMID_SPEAKER_SWITCH      39
#define     SND_ELEM_SPEAKER_SWITCH       "Speaker Switch"

/* Main Mic Switch  */
#define     SND_NUMID_MAIN_MIC_SWITCH      40
#define     SND_ELEM_MAIN_MIC_SWITCH       "Main Mic Switch"

/* Left PGA Mux  */
#define     SND_NUMID_LEFT_PGA_MUX      42
#define     SND_ELEM_LEFT_PGA_MUX       "Left PGA Mux"
#define     SND_LEFT_PGA_MUX_MAIN_MIC    "1" /* Line 2L */

#endif /* ALSA_SND_COMMON_H */
